#pragma once

#include "common.h"
#include "dist.h"

#ifdef __cplusplus
extern "C" {
#endif

// 定义v4和csem公用的函数实现
void sleep_staging(const dist_action_t *dist, uint64_t begin,
                   const smp_hr_t *slist, size_t count,
                   linked_list_t *staging_list);
double all_avg(const smp_hr_t *list, size_t len, double *low_avg);

#ifdef __cplusplus
}
#endif